package org.mat.ipaas.ucenter.service.api.cas;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * CAS单点登录客户端登录认证
 * </p>
 *
 * @Author zhoujf
 * @since 2018-12-20
 */
@FeignClient(name = "mat-ipaas-ucenter-service", contextId = "cas-client-rest-api")
public interface CasClientRestAPI {

    @GetMapping("/sys/cas/client/validateLogin")
    Object validateLogin(@RequestParam(name = "ticket") String ticket,
                         @RequestParam(name = "service") String service

    ) throws Exception;


}
